import Ember from 'ember';
import config from 'game-front/config/environment';

export default Ember.Route.extend({
	model() {
		var userInfo = this.modelFor("application");
		return $.getJSON(config.apiBase + "notification", {userId:userInfo.userId, page:0, size:20});
		//return {"content":[{"id":"58544554545","userId":"oFSaywlOF4_cda6hzcO6aLtxajwI","content":"所得罚款离开苏丹","hasRead":true,"createTime":"2016-10-08 11:12:11","readTime":"2016-11-08 11:59:23"},{"id":"245454","userId":"oFSaywlOF4_cda6hzcO6aLtxajwI","content":"5454545454","hasRead":true,"createTime":"2016-10-08 11:11:11","readTime":""},{"id":"554154","userId":"oFSaywlOF4_cda6hzcO6aLtxajwI","content":"fjkasjfk","hasRead":true,"createTime":"2016-10-08 11:11:11","readTime":"2016-11-08 11:53:55"}],"totalElements":3,"firstPage":true,"numberOfElements":3,"totalPages":1,"lastPage":true,"size":20,"number":0};
	}
});
